 <!-- Example table --> <div class="container_12"> 
      <div class="module">
                     <h2><span>Edit Hoenymoon Package</span></h2>
                        
                     <div class="module-body">
                         <div style="margin-top:13px;">
                        <?php
                        if(isset($errMsg)){?>
                        <span class="notification"><?php echo $_MESSESGE[$errMsg];?></span>
                        <?php }?></div>
                        
                        <form name="admin_frm" id="admin_frm" action="" method="post" enctype="multipart/form-data">
                        
                            <p>                                
                                <label>Select Vendor</label>
                                <?php   
                                $vendor = Vendor::getVendor();
                                if( $vendor ){  
                                    echo '<select class="input-short" name="vendor_id">';
                                    $selval = $result['vendor_id'];
                                    foreach( $vendor as $row )  {
                                        $sel = $selval==$row['id'] ? 'selected' : '';
                                        echo '<option value="'.$row['id'].'" '.$sel.'>'.$row['name'].'</option>';
                                    }   
                                    echo '</select>';
                                }                                                        
                                ?>
                            </p>
                            
                            <p>
                                <label>Title</label>
                                <div id="availability_info"></div>
								<input type="text" class="input-short check_availability" name="title" value="<?php echo $result['title'];?>" />
                                <!-- <span class="notification-input ni-correct">This is correct, thanks!</span> -->
                            </p>
                            
                            <p>                                
                                <label>Select Theme</label>
                                <?php   
                                $theme = Honeymoon::getThemeById();
                                if( $theme ){                                      
                                    echo '<select class="input-short" name="theme_id">';
                                    $selval = $result['theme_id'];
                                    foreach( $theme as $row )  {
                                        $sel = $selval==$row['id'] ? 'selected' : '';
                                        echo '<option value="'.$row['id'].'" '.$sel.'>'.$row['theme'].'</option>';
                                    }   
                                    echo '</select>';
                                }                                                        
                                ?>
                            </p>
                            
                            <p>
                                <label>Package URL</label>
                                <input type="text" class="input-short" name="package_url" value="<?php echo $result['package_url'];?>" />
                                <!-- <span class="notification-input ni-error">Sorry, try again.</span> -->
                            </p>
                            
                            
                            <p>
                                <label>Days</label>
                                <input type="text" class="input-short" name="days" value="<?php echo $result['days'];?>" /><!-- <span class="notification-input ni-error">Sorry, try again.</span> -->
                            </p>
                            
                             <p>
                                <label>Price/Couple</label>
                                <input type="text" class="input-short" name="price_per_couple" value="<?php echo $result['price_per_couple'];?>" /><!-- <span class="notification-input ni-error">Sorry, try again.</span> -->
                            </p>
                            
                            <p>
                                <label>Tags</label>
                                <input type="text" class="input-short" name="tags" value="<?php echo $result['tags'];?>" /><!-- <span class="notification-input ni-error">Sorry, try again.</span> -->
                            </p>
                            
                            
                            <p>
                                <label>Short Description</label>
                                <textarea rows="7" cols="90" class="input-short" name="short_description"><?php echo $result['short_description'];?></textarea>
                            </p>
                            
                            <p>
                                <label>Description</label>
                                <textarea rows="7" cols="90" class="input-medium" name="description"><?php echo $result['description'];?></textarea>
                            </p>
                            
                            <p>                                
                                <label>Destination</label>
                            <?php   
                                $packagetype = Honeymoon::getPackageDestination('', array('status'=>'1'));
                                if( $packagetype ){  
                                    echo '<select class="input-short" name="destinations[]" multiple >';
                                    /*$selval = $result['destinations'];
                                    foreach( $packagetype as $row )  {
                                        $sel = in_array($row['id'], $selval) ? 'selected' : '';
                                        echo '<option value="'.$row['id'].'" '.$sel.'>'.$row['destination'].'</option>';
                                    } */
                                    echo $dropdown_cities;  
                                    echo '</select>';
                                }                                                        
                            ?>
                            </p>
                                
                            <p>                                
                                <label>Package Type</label>
                            <?php   
                                $packagetype = Honeymoon::getPackageType();
                                if( $packagetype ){  
                                    echo '<select class="input-short" name="package_type">';
                                    $selval = $result['package_type'];
                                    foreach( $packagetype as $row )  {
                                        $sel = $selval==$row['id'] ? 'selected' : '';
                                        echo '<option value="'.$row['id'].'" '.$sel.'>'.$row['title'].'</option>';
                                    }   
                                    echo '</select>';
                                }                                                        
                            ?>
                            </p>
                            
                            <p>
                                <label>Booking Amount</label>
                                <input type="text" class="input-short" name="booking_amount" value="<?php echo $result['booking_amount'];?>"  /> <!-- <span class="notification-input ni-error">Sorry, try again.</span> -->
                            </p>
                            
                            <p>
                                <label>Cancellation Policy</label>
                                <textarea rows="7" cols="90" class="input-medium" name="cancellation_policy"><?php echo $result['cancellation_policy'];?></textarea>
                            </p>   
                            
                             <p>
                                <label>Upload Package Image</label>
                                <input type="file" name="package_image">
                            </p>
                            
                            <fieldset>
                                <input class="submit-green" type="submit" name="submit" value="Submit" /> 
                                <input class="submit-gray" type="button" value="Cancel" onclick="javascript: window.location='<?php echo _SITE_ADMIN_URL_?>'+'honeymoon-package/package_mng.php';" />
                            </fieldset>
                        </form>
                     </div> <!-- End .module-body -->

                </div>  <!-- End .module -->
                </div>
                <div style="clear:both;"></div>
                
<script type="text/javascript">
	var root_path = '<?php echo _SITE_ADMIN_URL_?>';
	var table = 'honeymoon_package';
	var field = 'title';
	
	$().ready(function() {
    	$("#admin_frm").validate({
			rules: {
				vendor: "required",
				title: "required",
				theme: "required",
				price_per_couple: "required",
				days: {
					required: true,
					number: true
				},
				destination: "required",
				package: "required",
				booking_amt: "required"            
			},
			messages: {
				vendor: "Please select the vendor",
				title: "Please enter title",            
				theme: "Please select theme",
				price_per_couple: "Please enter price",
				days: "Please enter number of days",
				destination: "Pleasee select destination",
				package: "Please select package type",
				booking_amt: "Please enter booking amount"            
			}
		});
	});
</script>       
<script type="text/javascript" src="<?php echo _ADMIN_JS_; ?>check_availability.js"></script>